<!-- http://ghe.sgdev.org/beyang/mux/commit/30ed17f1299cccf1486f868f312fc5fcb58096a5?diff=split -->
<div id="diff-0" class="file js-file js-details-container Details





              show-inline-notes
           ">
  <div class="file-header js-file-header" data-path="mux.go" data-short-path="b303fad" data-anchor="diff-b303fad270323289aeb17e2f0930ffa7">
    <div class="file-actions">

        <span class="show-file-notes pt-1">
          <label>
            <input type="checkbox" checked="checked" class="js-toggle-file-notes">
            Show comments
          </label>
        </span>

          <a href="/beyang/mux/blob/30ed17f1299cccf1486f868f312fc5fcb58096a5/mux.go" class="btn btn-sm tooltipped tooltipped-nw" rel="nofollow" aria-label="View the whole file at version 30ed17f ">View</a>


      <button type="button" class="btn-octicon p-1 pr-2 js-details-target" aria-label="Toggle diff text" aria-expanded="true">
        <svg class="octicon octicon-chevron-down Details-content--shown" viewBox="0 0 10 16" version="1.1" width="10" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M5 11L0 6l1.5-1.5L5 8.25 8.5 4.5 10 6l-5 5z"></path></svg>
        <svg class="octicon octicon-chevron-up Details-content--hidden" viewBox="0 0 10 16" version="1.1" width="10" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M10 10l-1.5 1.5L5 7.75 1.5 11.5 0 10l5-5 5 5z"></path></svg>
      </button>
    </div>
    <div class="file-info">
        <span class="diffstat tooltipped tooltipped-e" aria-label="1 addition &amp; 1 deletion">2 <span class="block-diff-added"></span><span class="block-diff-deleted"></span><span class="block-diff-neutral"></span><span class="block-diff-neutral"></span><span class="block-diff-neutral"></span></span>

      <a href="#diff-b303fad270323289aeb17e2f0930ffa7" class="link-gray-dark" title="mux.go">mux.go</a>


    </div>
  </div>
  <div class="js-file-content Details-content--shown">

        <div class="data highlight js-blob-wrapper" style="overflow-x: auto">
          <table class="diff-table tab-size  file-diff-split" data-tab-size="8">
              <colgroup>
                <col width="40">
                <col>
                <col width="40">
                <col>
              </colgroup>

      <tbody><tr class="js-expandable-line" data-position="0">
    <td class="blob-num blob-num-expandable" colspan="1">
      <a href="#diff-b303fad270323289aeb17e2f0930ffa7" class="diff-expander js-expand" title="Expand" aria-label="Expand" data-url="/beyang/mux/blob_excerpt/69484cbb46a2c770283575764fff4d3fc2486725?diff=split&amp;in_wiki_context=&amp;left_hunk_size=7&amp;mode=100644&amp;next_line_num_left=79&amp;next_line_num_right=79&amp;path=mux.go&amp;prev_line_num_left=&amp;prev_line_num_right=&amp;right_hunk_size=7" data-left-range="1-78" data-right-range="1-78">
        <svg class="octicon octicon-unfold" viewBox="0 0 14 16" version="1.1" width="14" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M11.5 7.5L14 10c0 .55-.45 1-1 1H9v-1h3.5l-2-2h-7l-2 2H5v1H1c-.55 0-1-.45-1-1l2.5-2.5L0 5c0-.55.45-1 1-1h4v1H1.5l2 2h7l2-2H9V4h4c.55 0 1 .45 1 1l-2.5 2.5zM6 6h2V3h2L7 0 4 3h2v3zm2 3H6v3H4l3 3 3-3H8V9z"></path></svg>
      </a>
    </td>
    <td class="blob-code blob-code-inner blob-code-hunk" colspan="3">@@ -79,7 +79,7 @@ type Router struct {</td>
  </tr>


    <tr>
    <td class="blob-num blob-num-context js-linkable-line-number" id="diff-b303fad270323289aeb17e2f0930ffa7L79" data-line-number="79"></td>

    <td class="code-review blob-code blob-code-context ">
        <button class="btn-link add-line-comment js-add-line-comment js-add-single-line-comment" data-type="deletion" data-path="mux.go" data-anchor="diff-b303fad270323289aeb17e2f0930ffa7" data-position="1" data-line="79" data-side="right" type="button" aria-label="Add line comment">
           <svg class="octicon octicon-plus" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M12 9H7v5H5V9H0V7h5V2h2v5h5v2z"></path></svg>
         </button>

      <span class="blob-code-inner"> <span class="pl-c"><span class="pl-c">//</span> (eg: not found) has a registered handler, the handler is assigned to the Handler</span></span>

    </td>

    <td class="blob-num blob-num-context js-linkable-line-number" id="diff-b303fad270323289aeb17e2f0930ffa7R79" data-line-number="79"></td>

    <td class="code-review blob-code blob-code-context">
        <button class="btn-link add-line-comment js-add-line-comment js-add-single-line-comment" data-type="addition" data-path="mux.go" data-anchor="diff-b303fad270323289aeb17e2f0930ffa7" data-position="1" data-line="79" data-side="right" type="button" aria-label="Add line comment">
           <svg class="octicon octicon-plus" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M12 9H7v5H5V9H0V7h5V2h2v5h5v2z"></path></svg>
         </button>

      <span class="blob-code-inner"> <span class="pl-c"><span class="pl-c">//</span> (eg: not found) has a registered handler, the handler is assigned to the Handler</span></span>

    </td>
</tr>




    <tr>
    <td class="blob-num blob-num-context js-linkable-line-number" id="diff-b303fad270323289aeb17e2f0930ffa7L80" data-line-number="80"></td>

    <td class="code-review blob-code blob-code-context ">
        <button class="btn-link add-line-comment js-add-line-comment js-add-single-line-comment" data-type="deletion" data-path="mux.go" data-anchor="diff-b303fad270323289aeb17e2f0930ffa7" data-position="2" data-line="80" data-side="right" type="button" aria-label="Add line comment">
           <svg class="octicon octicon-plus" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M12 9H7v5H5V9H0V7h5V2h2v5h5v2z"></path></svg>
         </button>

      <span class="blob-code-inner"> <span class="pl-c"><span class="pl-c">//</span> field of the match argument.</span></span>

    </td>

    <td class="blob-num blob-num-context js-linkable-line-number" id="diff-b303fad270323289aeb17e2f0930ffa7R80" data-line-number="80"></td>

    <td class="code-review blob-code blob-code-context">
        <button class="btn-link add-line-comment js-add-line-comment js-add-single-line-comment" data-type="addition" data-path="mux.go" data-anchor="diff-b303fad270323289aeb17e2f0930ffa7" data-position="2" data-line="80" data-side="right" type="button" aria-label="Add line comment">
           <svg class="octicon octicon-plus" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M12 9H7v5H5V9H0V7h5V2h2v5h5v2z"></path></svg>
         </button>

      <span class="blob-code-inner"> <span class="pl-c"><span class="pl-c">//</span> field of the match argument.</span></span>

    </td>
</tr>




    <tr>
    <td class="blob-num blob-num-context js-linkable-line-number" id="diff-b303fad270323289aeb17e2f0930ffa7L81" data-line-number="81"></td>

    <td class="code-review blob-code blob-code-context ">
        <button class="btn-link add-line-comment js-add-line-comment js-add-single-line-comment" data-type="deletion" data-path="mux.go" data-anchor="diff-b303fad270323289aeb17e2f0930ffa7" data-position="3" data-line="81" data-side="right" type="button" aria-label="Add line comment">
           <svg class="octicon octicon-plus" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M12 9H7v5H5V9H0V7h5V2h2v5h5v2z"></path></svg>
         </button>

      <span class="blob-code-inner"> <span class="pl-k">func</span> <span class="pl-en">(<span class="pl-v">r</span> *<span class="pl-v">Router</span>) <span class="pl-en">Match</span></span>(<span class="pl-v">req</span> *<span class="pl-v">http</span>.<span class="pl-v">Request</span>, <span class="pl-v">match</span> *<span class="pl-v">RouteMatch</span>) <span class="pl-v">bool</span> {</span>

    </td>

    <td class="blob-num blob-num-context js-linkable-line-number" id="diff-b303fad270323289aeb17e2f0930ffa7R81" data-line-number="81"></td>

    <td class="code-review blob-code blob-code-context">
        <button class="btn-link add-line-comment js-add-line-comment js-add-single-line-comment" data-type="addition" data-path="mux.go" data-anchor="diff-b303fad270323289aeb17e2f0930ffa7" data-position="3" data-line="81" data-side="right" type="button" aria-label="Add line comment">
           <svg class="octicon octicon-plus" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M12 9H7v5H5V9H0V7h5V2h2v5h5v2z"></path></svg>
         </button>

      <span class="blob-code-inner"> <span class="pl-k">func</span> <span class="pl-en">(<span class="pl-v">r</span> *<span class="pl-v">Router</span>) <span class="pl-en">Match</span></span>(<span class="pl-v">req</span> *<span class="pl-v">http</span>.<span class="pl-v">Request</span>, <span class="pl-v">match</span> *<span class="pl-v">RouteMatch</span>) <span class="pl-v">bool</span> {</span>

    </td>
</tr>




    <tr>
    <td class="blob-num blob-num-deletion js-linkable-line-number" id="diff-b303fad270323289aeb17e2f0930ffa7L82" data-line-number="82"></td>

    <td class="code-review blob-code blob-code-deletion ">
        <button class="btn-link add-line-comment js-add-line-comment js-add-split-line-comment" data-type="deletion" data-path="mux.go" data-anchor="diff-b303fad270323289aeb17e2f0930ffa7" data-position="4" data-line="82" data-side="left" type="button" aria-label="Add line comment">
           <svg class="octicon octicon-plus" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M12 9H7v5H5V9H0V7h5V2h2v5h5v2z"></path></svg>
         </button>

      <span class="blob-code-inner">-	fmt.<span class="pl-c1">Println</span>(<span class="pl-s"><span class="pl-pds">"</span>hello world!<span class="pl-pds">"</span></span>)</span>

    </td>

    <td class="blob-num blob-num-addition js-linkable-line-number" id="diff-b303fad270323289aeb17e2f0930ffa7R82" data-line-number="82"></td>

    <td class="code-review blob-code blob-code-addition">
        <button class="btn-link add-line-comment js-add-line-comment js-add-split-line-comment" data-type="addition" data-path="mux.go" data-anchor="diff-b303fad270323289aeb17e2f0930ffa7" data-position="5" data-line="82" data-side="right" type="button" aria-label="Add line comment">
           <svg class="octicon octicon-plus" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M12 9H7v5H5V9H0V7h5V2h2v5h5v2z"></path></svg>
         </button>

      <span class="blob-code-inner">+	fmt.<span class="pl-c1">Println</span>(<span class="pl-s"><span class="pl-pds">"</span>hello world!<span class="x x-first x-last">!</span><span class="pl-pds">"</span></span>)</span>

    </td>
</tr>




    <tr>
    <td class="blob-num blob-num-context js-linkable-line-number" id="diff-b303fad270323289aeb17e2f0930ffa7L83" data-line-number="83"></td>

    <td class="code-review blob-code blob-code-context ">
        <button class="btn-link add-line-comment js-add-line-comment js-add-single-line-comment" data-type="deletion" data-path="mux.go" data-anchor="diff-b303fad270323289aeb17e2f0930ffa7" data-position="6" data-line="83" data-side="right" type="button" aria-label="Add line comment">
           <svg class="octicon octicon-plus" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M12 9H7v5H5V9H0V7h5V2h2v5h5v2z"></path></svg>
         </button>

      <span class="blob-code-inner"> 	<span class="pl-k">for</span> <span class="pl-smi">_</span>, <span class="pl-smi">route</span> <span class="pl-k">:=</span> <span class="pl-k">range</span> r.<span class="pl-smi">routes</span> {</span>

    </td>

    <td class="blob-num blob-num-context js-linkable-line-number" id="diff-b303fad270323289aeb17e2f0930ffa7R83" data-line-number="83"></td>

    <td class="code-review blob-code blob-code-context">
        <button class="btn-link add-line-comment js-add-line-comment js-add-single-line-comment" data-type="addition" data-path="mux.go" data-anchor="diff-b303fad270323289aeb17e2f0930ffa7" data-position="6" data-line="83" data-side="right" type="button" aria-label="Add line comment">
           <svg class="octicon octicon-plus" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M12 9H7v5H5V9H0V7h5V2h2v5h5v2z"></path></svg>
         </button>

      <span class="blob-code-inner"> 	<span class="pl-k">for</span> <span class="pl-smi">_</span>, <span class="pl-smi">route</span> <span class="pl-k">:=</span> <span class="pl-k">range</span> r.<span class="pl-smi">routes</span> {</span>

    </td>
</tr>




    <tr>
    <td class="blob-num blob-num-context js-linkable-line-number" id="diff-b303fad270323289aeb17e2f0930ffa7L84" data-line-number="84"></td>

    <td class="code-review blob-code blob-code-context ">
        <button class="btn-link add-line-comment js-add-line-comment js-add-single-line-comment" data-type="deletion" data-path="mux.go" data-anchor="diff-b303fad270323289aeb17e2f0930ffa7" data-position="7" data-line="84" data-side="right" type="button" aria-label="Add line comment">
           <svg class="octicon octicon-plus" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M12 9H7v5H5V9H0V7h5V2h2v5h5v2z"></path></svg>
         </button>

      <span class="blob-code-inner"> 		<span class="pl-k">if</span> route.<span class="pl-c1">Match</span>(req, match) {</span>

    </td>

    <td class="blob-num blob-num-context js-linkable-line-number" id="diff-b303fad270323289aeb17e2f0930ffa7R84" data-line-number="84"></td>

    <td class="code-review blob-code blob-code-context">
        <button class="btn-link add-line-comment js-add-line-comment js-add-single-line-comment" data-type="addition" data-path="mux.go" data-anchor="diff-b303fad270323289aeb17e2f0930ffa7" data-position="7" data-line="84" data-side="right" type="button" aria-label="Add line comment">
           <svg class="octicon octicon-plus" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M12 9H7v5H5V9H0V7h5V2h2v5h5v2z"></path></svg>
         </button>

      <span class="blob-code-inner"> 		<span class="pl-k">if</span> route.<span class="pl-c1">Match</span>(req, match) {</span>

    </td>
</tr>




    <tr>
    <td class="blob-num blob-num-context js-linkable-line-number" id="diff-b303fad270323289aeb17e2f0930ffa7L85" data-line-number="85"></td>

    <td class="code-review blob-code blob-code-context ">
        <button class="btn-link add-line-comment js-add-line-comment js-add-single-line-comment" data-type="deletion" data-path="mux.go" data-anchor="diff-b303fad270323289aeb17e2f0930ffa7" data-position="8" data-line="85" data-side="right" type="button" aria-label="Add line comment">
           <svg class="octicon octicon-plus" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M12 9H7v5H5V9H0V7h5V2h2v5h5v2z"></path></svg>
         </button>

      <span class="blob-code-inner"> 			<span class="pl-k">return</span> <span class="pl-c1">true</span></span>

    </td>

    <td class="blob-num blob-num-context js-linkable-line-number" id="diff-b303fad270323289aeb17e2f0930ffa7R85" data-line-number="85"></td>

    <td class="code-review blob-code blob-code-context">
        <button class="btn-link add-line-comment js-add-line-comment js-add-single-line-comment" data-type="addition" data-path="mux.go" data-anchor="diff-b303fad270323289aeb17e2f0930ffa7" data-position="8" data-line="85" data-side="right" type="button" aria-label="Add line comment">
           <svg class="octicon octicon-plus" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M12 9H7v5H5V9H0V7h5V2h2v5h5v2z"></path></svg>
         </button>

      <span class="blob-code-inner"> 			<span class="pl-k">return</span> <span class="pl-c1">true</span></span>

    </td>
</tr>




  <tr class="js-expandable-line">
   <td class="blob-num blob-num-expandable" colspan="1">
     <a href="#diff-b303fad270323289aeb17e2f0930ffa7" class="diff-expander js-expand" title="Expand" aria-label="Expand" data-url="/beyang/mux/blob_excerpt/69484cbb46a2c770283575764fff4d3fc2486725?diff=split&amp;in_wiki_context=&amp;mode=100644&amp;path=mux.go&amp;prev_line_num_left=85&amp;prev_line_num_right=85" data-left-range="86-574" data-right-range="86-574">
       <svg class="octicon octicon-unfold" viewBox="0 0 14 16" version="1.1" width="14" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M11.5 7.5L14 10c0 .55-.45 1-1 1H9v-1h3.5l-2-2h-7l-2 2H5v1H1c-.55 0-1-.45-1-1l2.5-2.5L0 5c0-.55.45-1 1-1h4v1H1.5l2 2h7l2-2H9V4h4c.55 0 1 .45 1 1l-2.5 2.5zM6 6h2V3h2L7 0 4 3h2v3zm2 3H6v3H4l3 3 3-3H8V9z"></path></svg>
     </a>
   </td>
   <td class="blob-code blob-code-expandable" colspan="3"></td>
  </tr>

          </tbody></table>
        </div>

  </div>
</div>
